﻿using Abp_Blazor_EfCore.Localization;
using Volo.Abp.Authorization.Permissions;
using Volo.Abp.Localization;

namespace Abp_Blazor_EfCore.Permissions
{
    public class Abp_Blazor_EfCorePermissionDefinitionProvider : PermissionDefinitionProvider
    {
        public override void Define(IPermissionDefinitionContext context)
        {
            var myGroup = context.AddGroup(Abp_Blazor_EfCorePermissions.GroupName);

            //Define your own permissions here. Example:
            //myGroup.AddPermission(Abp_Blazor_EfCorePermissions.MyPermission1, L("Permission:MyPermission1"));
        }

        private static LocalizableString L(string name)
        {
            return LocalizableString.Create<Abp_Blazor_EfCoreResource>(name);
        }
    }
}
